home *** CD-ROM | disk | FTP | other *** search
/ TeX 1995 July / TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO / tex-k / tex-k-archive.past / 1994.12.gz / 1994.12 / 000084_neal@ctd.comsat.com_Thu Dec 22 10:31:00 1994.msg < prev    next >
Internet Message Format  |  1994-12-30  |  2KB

  1. Received: from neal.ctd.comsat.com by cs.umb.edu with SMTP id AA29824
  2.   (5.65c/IDA-1.4.4 for <tex-k@cs.umb.edu>); Thu, 22 Dec 1994 15:32:16 -0500
  3. Received: by neal.ctd.comsat.com (Smail3.1.29.0 #2)
  4.     id m0rKuAq-00034LC; Thu, 22 Dec 94 15:31 EST
  5. Message-Id: <m0rKuAq-00034LC@neal.ctd.comsat.com>
  6. Date: Thu, 22 Dec 94 15:31 EST
  7. From: neal@ctd.comsat.com (Neal Becker)
  8. To: Robin Fairbairns <Robin.Fairbairns@cl.cam.ac.uk>
  9. Cc: dcanright@nps.navy.mil, tex-k@cs.umb.edu, me@danhicks.math.nps.navy.mil
  10. Subject: Re: LaTeX problems with kpathsea
  11. In-Reply-To: <"swan.cl.cam.:186150:941219234040"@cl.cam.ac.uk>
  12. References: <9412192113.AA05325@danhicks.math.nps.navy.mil>
  13.     <"swan.cl.cam.:186150:941219234040"@cl.cam.ac.uk>
  14.  
  15. Here is a simple example that works for us, this just redefines the
  16. sectioning stuff.  I'm no expert, and the docs weren't really that
  17. clear, so let me know if this example is not a good one.
  18.  
  19. --------------------------------
  20. \NeedsTeXFormat{LaTeX2e}
  21. \ProvidesClass{nbarticle}[1994/06/22 nbarticle class]
  22. \DeclareOption*{\PassOptionsToClass{\CurrentOption}{article}}
  23. \ProcessOptions
  24. \LoadClass{article}
  25. \renewcommand\section{\@startsection {section}{1}{\z@}%
  26.                                    {3.5ex \@plus 1ex \@minus .2ex}%
  27.                                    {2.3ex \@plus.2ex}%
  28.                                    {\reset@font\Large\bfseries}}
  29. \renewcommand\subsection{\@startsection{subsection}{2}{\z@}%
  30.                                      {3.25ex\@plus 1ex \@minus .2ex}%
  31.                                      {1.5ex \@plus .2ex}%
  32.                                      {\reset@font\Large}}
  33. \renewcommand\subsubsection{\@startsection{subsubsection}{3}{\z@}%
  34.                                      {3.25ex\@plus 1ex \@minus .2ex}%
  35.                                      {1.5ex \@plus .2ex}%
  36.                                      {\reset@font\normalsize\bfseries}}
  37. \renewcommand\paragraph{\@startsection{paragraph}{4}{\z@}%
  38.                                     {3.25ex \@plus1ex \@minus.2ex}%
  39.                                     {1.5ex \@plus .2ex}%
  40.                                     {\reset@font\normalsize}}
  41. \renewcommand\subparagraph{\@startsection{subparagraph}{5}{\z@}%
  42.                                        {3.25ex \@plus1ex \@minus .2ex}%
  43.                                        {1.5ex \@plus .2ex}%
  44.                                       {\reset@font\normalsize}}